package com.design02_Structural.pattern07_bridging.example02;

import java.math.BigDecimal;

/**
 * @ClassName PayBridging
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/4 22:37
 */
public abstract class Pay {

    //桥接对象
    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    //划账功能
    public abstract String transfer(String uId, String
            tradeId, BigDecimal amount);

}
